#DEBUGGING=-g $(EXTRA_DEBUGGING)
# add -DDEBUG_MEM to turn on memory allocation logging
GBCFLAGS=$(EXTRA_CFLAGS) $(DEBUGGING) -I$(srcdir) -I$(QT_INC) \
- $(OPTIMIZATION) -DHAVE_CONFIG_H @CFLAGS@ -DNEWTIME -DOLDGPX
+ $(OPTIMIZATION) -DHAVE_CONFIG_H @CFLAGS@ -DNEWTIME -UOLDGPX
LDFLAGS=$(EXTRA_LDFLAGS) @LDFLAGS@
PREFIX=@prefix@
INSTALL_DIR=$(DESTDIR)/$(PREFIX)
gbfprintf(ofd, " creator=\"" CREATOR_NAME_URL "\"\n");
gbfprintf(ofd, " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n");
#else
+ // FIXME: This write of a blank line is needed for Qt 4.6 (as on Centos 6.3)
+ // to include just enough whitespace between <xml/> and <gpx...> to pass
+ // diff -w. It's here for now to shim compatibility with our zillion
+ // reference files, but this blank link can go away some day.
+ writer.writeCharacters("\n");
+
writer.setAutoFormatting(true);
writer.writeStartElement("gpx");
writer.writeAttribute("\n version", gpx_wversion);